$(document).ready(function(){
    $("select").each(function(){
        //$('body').on("change",$(this),{select: $(this)}, updateForm);
        $('body').on("change","#userPlant_user",{select: $("#userPlant_user")},updateForm)
    });
      
});

function updateForm(event){
      
    $('#loader').show();
    //var formDiv=event.data.select.parents(" form ").parent().parent();
    var formDiv=$("#userPlant_user").parents(" form ").parent().parent();
    
    var par=new Object();
    
    $("select").each(function(){
        par[$(this).attr("id")]=$("#userPlant_user").val();
    });
    
    formDiv.load(window.location.pathname,par,function(){
        $('#loader').hide();
        
    });
}